package com.njbdqn.mybuy.services;

import java.util.List;

import com.njbdqn.mybuy.dao.UserinfosDAO;
import com.njbdqn.mybuy.entity.Userinfos;

public class UserinfosService {
	private UserinfosDAO udao;
	
	public UserinfosService(){
		udao = new UserinfosDAO();
	}
	
	public Userinfos login(Userinfos user){
		List<Userinfos> uss = udao.login(user);
		if (uss.isEmpty()) {
			return null;
		}
		return uss.get(0);
	}
	
	
}
